<!--<?php
print <<<EOT
-->
<script type="text/javascript" src="getfiles.php?t=js&v={$_SYS['VERSION']}&f=util|popwin|ajax|choosedate|post"></script>
<div class="position"><span>当前位置:</span> {$_SYS['positionindex']} {$_SYS['positionforum']} » <span>{$cmdtitle}</span></div>
<div class="div_out post_out">
	<div class="inner">
		<form action="{$formaction}" method="POST" onsubmit="return checkFormSubmit()">
		<div class="post_title">{$cmdtitle}{$verifystr}</div>
		<table>
			<tr><td><input type="text" style="width:400px;" name="title" id="title" value="{$oldpost['title']}" class="text_css" /></td></tr>
<!--
EOT;
//投票
if($topictype==1){
print <<<EOT
-->
			<tr><td>
			<div class="post_voteout">
			<div class="post_voteitem"><b>请填写投票的选项。每行填写 1 个选项，最多可填写 10 个选项。</b></div>
			<table class="post_voteall">
			<tr>
			<td class="post_voteleft">
			<div id="votesdiv"></div>
			<div class="post_voteitem"><a href="javascript:addVoteItem()">+ 增加投票选项</a></div>
			</td>
			<td class="post_voteright">
			<div class="post_votecheckbox">
				<table class="post_votetable">
					<tr><td class="left">每人允许投票数:</td><td class="right"><input type="text" size="3" value="1" name="maxvotes" class="text_css" /></td></tr>
					<tr><td class="left">允许投票时间段:</td><td class="right"><input type="text" size="10" value="" name="starttime" id="starttime" class="text_css" />~<input type="text" size="10" value="" name="stoptime" id="stoptime" class="text_css" /></td></tr>
					<tr><td class="left">投票后结果可见:</td><td class="right"><input type="radio" value="1" name="viewresult" class="radio_css" /> 是 &nbsp; <input type="radio" value="0" name="viewresult" checked="true" class="radio_css" /> 否 </td></tr>
					<tr><td class="left">公开投票参与人:</td><td class="right"><input type="radio" value="1" name="isopenvote" class="radio_css" /> 是 &nbsp; <input type="radio" value="0" name="isopenvote" checked="true" class="radio_css" /> 否 </td></tr>
				</table>
			</div>
			</td>
			</tr></table>
			</div>
			</td></tr>
<!--
EOT;
}
//悬赏
elseif($topictype==2){
print <<<EOT
-->
			<tr><td>
			悬赏 {$creditsoption} <input type="text" size="8" name="reward" id="reward" class="text_css" />
			</td></tr>
<!--
EOT;
}
print <<<EOT
-->
			<tr><td>
				<textarea style="display:none;" name="content" id="content">{$oldpost['content']}</textarea>
				<iframe ID="Editor" name="Editor" src="inc/editor/ubb/editor.htm?ubb=1&id=content&frmid=Editor" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:300px;width:930px"></iframe>
			</td></tr>
			<tr><td><input type="submit" class="button_css" value="  提  交  "  />
<!--
EOT;
if($cache_settings['postsecuritycode']=='1'){
print <<<EOT
-->
			<input type="text" style="width:50px;" name="securitycode" id="securitycode" tabIndex="102" title="验证码" value="验证码" onmouseover="this.select()" class="text_css" /> <a href="javascript:reloadVerify('securitycodeimg')" title="看不清楚？点击刷新验证码"><img src="code.php?t={$_SYS['time']}" align="absmiddle" border="0" id="securitycodeimg" /></a> <span id="verify_tips"></span>
<!--
EOT;
}
print <<<EOT
-->		
			</td></tr>
		</table>
		</form>
	</div>
</div>
<script>
var popedom_14="{$popedom_14}";
var topictype={$topictype};
window.onload=post_PageInit;
function checkFormSubmit(){
	return checkAllAction();
}
</script>
<!--
EOT;
?>
-->